<?php
include 'Curl.array.php';
echo 11111;
if(isset($_GET['type']) && !empty($_GET['type'])){
    $type=$_GET['type'];
    $value=$_GET['value'];
    $dataModel=new Curl();
    $dataArray=$dataModel->To($type,$value);
    //初始化curl
    $ch = curl_init();
    //设置curl
    curl_setopt($ch, CURLOPT_URL, "地址");
    //执行curl
    if(is_array($dataArray)){
        foreach($dataArray as $k=>$v){
            $post_data = array(
                "data" => $v,
            );
            curl_setopt ($ch, CURLOPT_POSTFIELDS, $post_data );
            $output = curl_exec($ch);
        }
    }else{
        $post_data = array(
            "data" => $dataArray,
        );
        curl_setopt ($ch, CURLOPT_POSTFIELDS, $post_data );
        $output = curl_exec($ch);
    }
    //结束释放curl
    curl_close($ch);

}
?>